package com.zero.manage.web.components.controller;

import com.zero.manage.web.components.base.BaseController;
import com.zero.manage.web.components.entity.SysDictDetailsEntity;
import com.zero.manage.web.components.query.SysDictDetailsQuery;
import com.zero.manage.web.components.service.SysDictDetailsService;
import io.gitee.zerowsh.util.PublicResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 系统字典详情 控制层
 *
 * @author zero
 */
@RestController
@RequestMapping("sysDictDetails")
@Api(tags = "系统字典详情")
public class SysDictDetailsController extends BaseController<SysDictDetailsEntity, String, SysDictDetailsService, SysDictDetailsQuery> {

    @GetMapping({"getIdByDictCodeIn"})
    @ApiOperation(value = "通过编码获取多条", notes = "通过编码集合获取多条信息")
    public PublicResult<List<SysDictDetailsEntity>> getIdByDictCodeIn(@RequestParam("dictCodes") List<String> dictCodes) {
        return service.getIdByDictCodeIn(dictCodes);
    }
}